package models

type SysMaterial struct {
	Model
	Name         string  `json:"name" gorm:"type:varchar(20);comment:资料名称"`
	Type         string  `json:"type" gorm:"type:varchar(10);comment:资料类型"`
	Category     string  `json:"category" gorm:"type:varchar(10);comment:资料分类"`
	Subject      string  `json:"subject" gorm:"type:varchar(20);comment:资料科目"`
	Cover        string  `json:"cover" gorm:"type:varchar(255);comment:资料封面"`
	Status       int     `json:"status" gorm:"type:tinyint(1);comment:资料状态"`
	Sum          int     `json:"sum" gorm:"type:smallint(5);comment:资料数量"`
	Price        float32 `json:"price" gorm:"type:decimal(10,2);comment:资料价格"`
	Province     string  `json:"province" gorm:"type:varchar(20);comment:适用地区"`
	Introduction string  `json:"introduction" gorm:"type:varchar(500);comment:资料简介"`
	Postage      float32 `json:"postage" gorm:"type:decimal(10,2);comment:资料邮费"`
	LBTUrl       string  `json:"lbt_url" gorm:"type:varchar(5000);comment:轮播图地址"`
	ControlBy
	ModelTime
}

func (SysMaterial) TableName() string {
	return "sys_material"
}
